package com.ruoyi.xsp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 喜欢管理对象 xsp_like
 * 
 * @author zhiminhu
 * @date 2021-01-22
 */
public class XspLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userCode;

    /** 关联Id */
    @Excel(name = "关联Id")
    private Long likeId;

    /** 类型 */
    @Excel(name = "类型")
    private Integer type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserCode(Long userCode)
    {
        this.userCode = userCode;
    }

    public Long getUserCode()
    {
        return userCode;
    }
    public void setLikeId(Long likeId) 
    {
        this.likeId = likeId;
    }

    public Long getLikeId() 
    {
        return likeId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userCode", getUserCode())
            .append("createTime", super.getCreateTime())
            .append("likeId", getLikeId())
            .append("type", getType())
            .toString();
    }
}
